package com.hobobe.tiercel.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.google.protobuf.InvalidProtocolBufferException;
import com.hobobe.tiercel.server.entity.HelloWorldTest.HelloWorld;

@Component("test")
public class TestController {
	protected static final Logger logger = LoggerFactory.getLogger(TestController.class);
	public String test(byte[] data){
		try {
			HelloWorld h = HelloWorld.parseFrom(data);
			
			logger.info(h.toString());
		} catch (InvalidProtocolBufferException e) {
			e.printStackTrace();
		}
		return "asdasd";
	}
}
